package cn.zeng.dto;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

import static cn.zeng.dto.Color.BLACK;
import static cn.zeng.dto.Display.NONE;


/**
 * 生活方式
 *
 * @author zyb
 */
@Data
public class WayOfLife {
    private Integer score = 123;
    private String image= "u4736.png";

    private Double bmi = 12.;
    private String bmiColor = BLACK.getName();
    private String bmiReference = "212";
    private String bmiKeep = NONE.getName();
    private String bmiImprove = NONE.getName();


    private String activity = "好";
    private String activityColor = BLACK.getName();
    private String activityReference = "212";
    private String activityKeep = NONE.getName();
    private String activityImprove = NONE.getName();


    private String smoking = "好累啊";
    private String smokingColor = BLACK.getName();
    private String smokingReference = "nica";
    private String smokingKeep = NONE.getName();
    private String smokingImprove = NONE.getName();


    private Double drinkWine = 12.;
    private String drinkWineColor = BLACK.getName();
    private String drinkWineReference = "212";
    private String drinkWineKeep = NONE.getName();
    private String drinkWineImprove = NONE.getName();


    private Integer meat = 121;
    private String meatColor = BLACK.getName();
    private String meatReference = "211";
    private String meatKeep = NONE.getName();
    private String meatImprove = NONE.getName();


    private Integer riceAndPhoto = 111;
    private String riceAndPhotoColor = BLACK.getName();
    private String riceAndPhotoReference = "211";
    private String riceAndPhotoKeep = NONE.getName();
    private String riceAndPhotoImprove = NONE.getName();


    private Integer vegetable = 11;
    private String vegetableColor = BLACK.getName();
    private String vegetableReference = "331";
    private String vegetableKeep = NONE.getName();
    private String vegetableImprove = NONE.getName();


    private Integer fruit = 31;
    private String fruitColor = BLACK.getName();
    private String fruitReference = "2112";
    private String fruitKeep = NONE.getName();
    private String fruitImprove = NONE.getName();


    private String psychological = "buhaoba";
    private String psychologicalColor = BLACK.getName();
    private String psychologicalKeep = NONE.getName();
    private String psychologicalImprove = NONE.getName();


    private String sleep = "好好好";
    private String sleepColor = BLACK.getName();
    private String sleepKeep = NONE.getName();
    private String sleepImprove = NONE.getName();

    public Map<String, Object> toMap() {
        Map<String, Object> map = new HashMap<>(49);
        map.put("WayOfLife_score", score);
        map.put("WayOfLife_image", image);
        map.put("WayOfLife_bmi", bmi);
        map.put("WayOfLife_bmiColor", bmiColor);
        map.put("WayOfLife_bmiReference", bmiReference);
        map.put("WayOfLife_bmiKeep", bmiKeep);
        map.put("WayOfLife_bmiImprove", bmiImprove);
        map.put("WayOfLife_activity", activity);
        map.put("WayOfLife_activityColor", activityColor);
        map.put("WayOfLife_activityReference", activityReference);
        map.put("WayOfLife_activityKeep", activityKeep);
        map.put("WayOfLife_activityImprove", activityImprove);
        map.put("WayOfLife_smoking", smoking);
        map.put("WayOfLife_smokingColor", smokingColor);
        map.put("WayOfLife_smokingReference", smokingReference);
        map.put("WayOfLife_smokingKeep", smokingKeep);
        map.put("WayOfLife_smokingImprove", smokingImprove);
        map.put("WayOfLife_drinkWine", drinkWine);
        map.put("WayOfLife_drinkWineColor", drinkWineColor);
        map.put("WayOfLife_drinkWineReference", drinkWineReference);
        map.put("WayOfLife_drinkWineKeep", drinkWineKeep);
        map.put("WayOfLife_drinkWineImprove", drinkWineImprove);
        map.put("WayOfLife_meat", meat);
        map.put("WayOfLife_meatColor", meatColor);
        map.put("WayOfLife_meatReference", meatReference);
        map.put("WayOfLife_meatKeep", meatKeep);
        map.put("WayOfLife_meatImprove", meatImprove);
        map.put("WayOfLife_riceAndPhoto", riceAndPhoto);
        map.put("WayOfLife_riceAndPhotoColor", riceAndPhotoColor);
        map.put("WayOfLife_riceAndPhotoReference", riceAndPhotoReference);
        map.put("WayOfLife_riceAndPhotoKeep", riceAndPhotoKeep);
        map.put("WayOfLife_riceAndPhotoImprove", riceAndPhotoImprove);
        map.put("WayOfLife_vegetable", vegetable);
        map.put("WayOfLife_vegetableColor", vegetableColor);
        map.put("WayOfLife_vegetableReference", vegetableReference);
        map.put("WayOfLife_vegetableKeep", vegetableKeep);
        map.put("WayOfLife_vegetableImprove", vegetableImprove);
        map.put("WayOfLife_fruit", fruit);
        map.put("WayOfLife_fruitColor", fruitColor);
        map.put("WayOfLife_fruitReference", fruitReference);
        map.put("WayOfLife_fruitKeep", fruitKeep);
        map.put("WayOfLife_fruitImprove", fruitImprove);
        map.put("WayOfLife_psychological", psychological);
        map.put("WayOfLife_psychologicalColor", psychologicalColor);
        map.put("WayOfLife_psychologicalKeep", psychologicalKeep);
        map.put("WayOfLife_psychologicalImprove", psychologicalImprove);
        map.put("WayOfLife_sleep", sleep);
        map.put("WayOfLife_sleepColor", sleepColor);
        map.put("WayOfLife_sleepKeep", sleepKeep);
        map.put("WayOfLife_sleepImprove", sleepImprove);
        return map;
    }
}
